<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
	<head>
	    <link href="<s:url value='/css/main.css'/>" rel="stylesheet" type="text/css"/>
	    <title><s:text name="application.title"/></title>
	</head>
	<body>
		
		<s:form action="doLogin" method="POST">
			<div class="titleDiv"><s:text name="application.title"/></div>
			<h1><s:text name="label.login"/></h1>
			<br/>
			<tr>
				<td colspan="2">
					<s:actionerror />
				</td>
			</tr>
			
			<s:textfield 
				name="username" 
				label="%{getText('label.login.name')}"
			/>
			<s:password 
				name="password" 
				label="%{getText('label.login.password')}"
			/>
			<s:select 
				name="type" 
				list="{getText('label.login.student'), getText('label.login.professor')}"
				label="%{getText('label.login.select')}"
			/>
			<s:submit 
				value="%{getText('label.login.button')}" 
				align="center"
			/>
		</s:form>
		
	</body>
</html>

